package com.sgzn.sgpay.web.request.Impl;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * @author huangsenguang
 * @version Id: PresentAddRequest.java, v 0.1 2018/5/21 21:19 huangsenguang Exp $$
 */
@Data
public class PresentAddRequest extends MerchantBaseRequest {

    /**
     * 礼品名称
     */
    @NotBlank(message = "礼品名称不能为空 ")
    private String presentName;

    /**
     * 礼品单价
     */
    @NotBlank(message = "礼品单价不能为空")
    @Pattern(regexp = "^[1-9]{1}$|^[1-9]{1}[0-9]{1}$|^[1-9]{1}[0-9]{1}[0-9]{1}$", message = "礼品单价只能为整数,并小于999")
    private String presentPrice;

}

